package model

import "time"

type SysRole struct {
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time `sql:"index"`
	RoleId    string     `json:"role_id" gorm:"not null;unique;primary_key;comment:角色ID;size:90"`
	RoleName  string     `json:"role_name" gorm:"comment:角色名"`
	ParentId     string        `json:"parentId" gorm:"comment:父角色ID"`
	CasbinModels []CasbinModel `json:"casbin_models" gorm:"foreignKey:RoleId;references:RoleId;comment:用户权限"`
}
